package com.ruicar.afs.cloud.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.product.condition.ProductDiscountPlanCondition;
import com.ruicar.afs.cloud.product.entity.ProductDiscountPlan;
import com.ruicar.afs.cloud.product.vo.ExtrasInfoVo;
import com.ruicar.afs.cloud.product.vo.ProductDiscountPlanVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yaorui.zhang
 * @version 1.0
 * @date 2020年5月13日11:14:02
 */
public interface ProductDiscountPlanMapper extends BaseMapper<ProductDiscountPlan> {
    /**
     * @param productDiscountPlanCondition
     * @return
     * @描述 贴息方案查询
     */
    IPage<List<ProductDiscountPlanVo>> getListProductDiscountPlan(Page page, @Param("query") ProductDiscountPlanCondition productDiscountPlanCondition);

    /**
     * @return
     * @描述 获取贴息来源信息
     */
    List<ExtrasInfoVo> getSelectDiscountShare();
}
